/*
* @Author: wanghongfucoder
* @Date:   2017-03-07 16:35:04
* @Last Modified by:   wanghongfucoder
* @Last Modified time: 2017-03-07 16:38:19
*/

public  class ProxyImage implements Image {

	private RealImage readImage;
	private String fileName;
	public  ProxyImage(String fileName){
		this.fileName=fileName;
	}

	public  void display(){
		if (readImage == null) {
			readImage = new RealImage(fileName);
		}
		readImage.display();
	}
}